<%@ page language="java" import="java.util.*,com.dao.*,com.beans.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML>
<html>
<head>
<title>商品详细信息</title>
<link href="${pageContext.request.contextPath }/css/basestyle.css" rel="stylesheet" type="text/css">
<link href="${pageContext.request.contextPath }/css/maintable.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="div_content">
<%@ include file="../top.jsp"  %>
<table>
  
  <%
  		String goodsId = request.getParameter("goodsId");
    	GoodsInfo goodsInfo= GoodsDao.getGoodsById(Integer.parseInt(goodsId));  	//得到商品信息
  %>

  <tr>
    <td>&nbsp;</td>
    <td>
		<table >
		  <tr>
			<td height="80" colspan="2"><IMG src="${pageContext.request.contextPath }/images/icon_goods.gif" width="150" height="29"></td>
		  </tr>
		  <tr>
			<td colspan="2"></td>
		  </tr>
		  <tr>
			<td height="40" width="260"  align="left" class="text" style= "font-size:10pt">
				<img width="155" height="200" src="${pageContext.request.contextPath }/GoodsServlet?flag=zhaopian&id=<%=goodsInfo.getId()%>" border="0" align="left" style="margin-left: 100px">

			</td>
			
			<td height="40" colspan="2" align="left" class="text" style= "font-size:10pt">
				&nbsp;&nbsp;大分类：&nbsp;&nbsp;&nbsp;<%=CateDao.getGoodsCateInfo(goodsInfo.getBigCateId()).getCateName()%><br>
				&nbsp;&nbsp;小分类：&nbsp;&nbsp;&nbsp;<%=CateDao.getGoodsCateInfo(goodsInfo.getSmallCateId()).getCateName()%><br>
				&nbsp;&nbsp;商品名称：&nbsp;<%=goodsInfo.getGoodsName() %><br>
				&nbsp;&nbsp;商品价格：&nbsp;<%=goodsInfo.getPrice()%>&nbsp;元<br>
				<%-- &nbsp;&nbsp;商品数量：&nbsp;<%=goodsInfo.getGoodsNumber()%>&nbsp;<%=goodsInfo.getUnit()%><br> --%>
				&nbsp;&nbsp;是否有货：&nbsp;有<br>
				&nbsp;&nbsp;商品描述：&nbsp;<%=goodsInfo.getDes()%><br>
				&nbsp;&nbsp;商品产商：&nbsp;<%=goodsInfo.getProducter()%><br>
			</td>
			
		  </tr>
		  <tr>
			<td colspan="2" height="40" align="center">
				<c:if test="${param.operType!='view'}">
					<a href="${pageContext.request.contextPath }/ShopCartServlet?flag=add&goodsId=<%=goodsInfo.getId()%>">
					<img src="${pageContext.request.contextPath }/images/icon_buy.gif" border=0></a>
			   </c:if>
			</td>
		  </tr>
		</table>
	</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td height="30">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>

</table>

<%@ include file="../bottom.jsp" %>
</div>
</body>
</html>
